package com.hsj.controller.utils;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;


@Aspect
@Component
public class MyAspectJ {
//MyAspectJ 就是 BeiAspectj 的代理对象
        @Before("execution(public void com.hsj.controller.utils.BeiAspectj.test())")
        public void getAllBefore(){
            System.out.println("在执行 TEST() 方法前 做一些事情");
        }
    }

